Making sure that an opacity node doesn't end up reviving a node that's
hidden because the cross-fade has progress 0 or 1.
--- /dev/null
+/* Background */
+color {
+ bounds: 0 0 200 200;
+ color: white;
+}
+
+/* It is important that the following node structure leaves the
+ * start child of the cross-fade node invisible. */
+opacity {
+ opacity: 0.4;
+
+ child: cross-fade {
+ start: color {
+ color: blue;
+ bounds: 0 0 100 100;
+ }
+ end: color {
+ color: red;
+ bounds: 100 100 100 100;
+ }
+ progress: 1.0;
+ }
+}
# Interesting render nodes proven to be rendered 'correctly' by the GL renderer.
gl_tests = [
- ['cross fade in opacity', 'cross-fade-in-opacity'],
]
foreach gl_test : gl_tests
compare_render_tests = [
'clip-coordinates-3d',
'clipped_rounded_clip',
+ 'cross-fade-in-opacity',
'opacity_clip',
'outset_shadow_offset_both',
'outset_shadow_offset_x',